const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: false,
  publicPath: process.env.NODE_ENV === 'production'
    ? '/production-sub-path/'
    : '/',
    outputDir: 'dist',
    pages:{
      index:{
        entry: 'src/main.js',
        title: '测试一下'
      }
    },
  runtimeCompiler: true,
  devServer: {
    host: "127.0.0.1",
    port: 8080,
    open: true
  },
  productionSourceMap: true,
  css: {
    loaderOptions: {
      sass: {
        additionalData: `@import "~@/assets/scss/_variable.scss";`
      }
    }
  }
})